package com.ajavaer.framework.config;

import com.ajavaer.framework.cache.type.CacheEngine;
import com.ajavaer.framework.cache.type.CacheEngineMode;

public class CacheEngineConfig {

    private String host;
    private Integer port;
    private String password;
    private CacheEngine engine;
    private CacheEngineMode mode = CacheEngineMode.singleton;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public CacheEngine getEngine() {
        return engine;
    }

    public void setEngine(CacheEngine engine) {
        this.engine = engine;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public CacheEngineMode getMode() {
        return mode;
    }

    public void setMode(CacheEngineMode mode) {
        this.mode = mode;
    }
}
